package com.asohofrucol.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.asohofrucol.model.FormFieldInputAnswer;

public interface FormFieldInputAnswerDao extends JpaRepository<FormFieldInputAnswer, Long>{

	@Query("SELECT p FROM FormFieldInputAnswer p WHERE p.formFieldInput.id = :formFieldInputId and p.formAnswer.id=:formAnswerId")
	public List<FormFieldInputAnswer> listByFormFieldInputAndFormAnswer(
			@Param("formFieldInputId") Long formFieldInputId, @Param("formAnswerId") Long formAnswerId);
}
